package net.sx.minemodule.mvp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.TestAnchorCollectItem;

/**
 * 主播
 * @author 11470
 */
public class TestAnchorCollectBean extends BaseModel<TestAnchorCollectItem> implements Parcelable{

    private String headPath;
    private String name;

    @Override
    public TestAnchorCollectItem createItem(MultiTypeAdapter adapter) {
        return new TestAnchorCollectItem(this);
    }

    public void setHeadPath(String headPath) {
        this.headPath = headPath;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeadPath() {
        return headPath;
    }

    public String getName() {
        return name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.headPath);
        dest.writeString(this.name);
    }

    public TestAnchorCollectBean() {
    }

    protected TestAnchorCollectBean(Parcel in) {
        this.headPath = in.readString();
        this.name = in.readString();
    }

    public static final Creator<TestAnchorCollectBean> CREATOR = new Creator<TestAnchorCollectBean>() {
        @Override
        public TestAnchorCollectBean createFromParcel(Parcel source) {
            return new TestAnchorCollectBean(source);
        }

        @Override
        public TestAnchorCollectBean[] newArray(int size) {
            return new TestAnchorCollectBean[size];
        }
    };
}
